Don't abort on possibly-corrupt submodules
authorAlex Crichton <alex@alexcrichton.com>
Sun, 30 Nov 2014 07:40:08 +0000 (23:40 -0800)
committerAlex Crichton <alex@alexcrichton.com>
Sun, 30 Nov 2014 07:40:08 +0000 (23:40 -0800)
commitff85180615e939bf9d8dd13488c8e83bf89c99c6
tree0dd075d06f03e2a80d96071b349fc3d542bb929a
parentd6dbce7d7d83043a65cdd191ef752a603c669905
Don't abort on possibly-corrupt submodules

If a submodule's head commit doesn't exist, then we should attempt to update it
rather than aborting the updating process. This commit moves a local `try!` into
a `and_then` closure to prevent returning from the outer function to hopefully
catch more cases where the submodule needs to be updated.

cc #993, but I'm not sure if this fixes it
src/cargo/sources/git/utils.rs